#include "defaultview.h"
#include "ui_defaultview.h"

DefaultView::DefaultView(QWidget *parent) :
    AbstractView(parent),
    m_ui(new Ui::DefaultView),webView(new QWebView)
{
    m_ui->setupUi(this);

    mainLayout = new QGridLayout;
    mainLayout->addWidget(webView, 0, 0);
    setLayout(mainLayout);

    webView->load(QUrl("template/welcome.html"));
}

DefaultView::~DefaultView()
{
    delete m_ui;
}

void DefaultView::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
